<template>
  <div class="channel-style">
    <div v-for="(style, index) in styles"
      :style="`width: ${style.width}; height: 100%; override: hidden;`"
      :key="index">
      <slot :name="style.slot">{{`栏目${index}`}}</slot>
    </div>
  </div>
</template>

<script>

export default {
  name: 'channel-style',
  props: {
    styles: {
      type: Array,
      required: false,
      default: () => ([])
    }
  },
  components: {
  },
  computed: {
  },
  data () {
    return {
    }
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style lang="scss">
@import "~@/css/lib/mixin";
@import "~@/css/common/variables";

.channel-style {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
</style>
